import request from '@/utils/request'
var qs = require('qs')
export function getParameterList(params) {
  return request({
    url: '/sysParam/list',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function addParameter(params) {
  return request({
    url: '/sysParam/save',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function deleteParameter(params) {
  return request({
    url: 'sysParam/deleteParamType',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function changeSearch(params) {
  return request({
    url: '/sysParam/input',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function savaParameter(params) {
  return request({
    url: 'sysParam/saveParam',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function deleteParam(params) {
  return request({
    url: 'sysParam/deleteParam',
    method: 'post',
    data: qs.stringify(params)
  })
}

export function searchParamType(params) {
  return request({
    url: 'sysParam/getParamByParamTypeKey',
    method: 'post',
    data: qs.stringify(params)
  })
}
